﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

using NSQL.Expressions;

namespace NSQL.Statements
{
    public class SortingElement : ISortingElement
    {
        public SortingDirection Direction { get; set; }
        public IExpression Element { get; set; }

        public SortingElement()
        {
        }

        public SortingElement(IExpression element, SortingDirection direction = SortingDirection.None)
        {
            Element = element;
            Direction = direction;
        }

        public object Tag { get; set; }
    }
}